package top.zhangjianyong.tools.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import top.zhangjianyong.tools.entity.AliBill;

import java.util.List;

public interface AliBillMapper extends BaseMapper<AliBill> {
    @Select("SELECT * from ali_bill a where not EXISTS (SELECT 1 from ali_bill b where b.order_no =a.order_no and b.create_time > a.create_time)")
    List<AliBill> listTheLast();
}
